# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-bottle-session
_pkgname=bottle-session
pkgver=0.9
pkgrel=1
pkgdesc="Bottle session plugin"
options="!check" # No testsuite on tarball
url="https://bitbucket.org/devries/bottle-session"
arch="noarch"
license="Artistic-2.0"
depends="python3 py3-bottle py3-redis"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

replaces="py-bottle-session" # Backwards compat
provides="py-bottle-session=$pkgver-r$pkgrel" # Backwards compat

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8299d0b0db0cedc22da61e6d5622ad754f4e8012b84e951b79b9e744a4db0953e8bdc67cdb6f053540ca090ffcac37c4f8b323e4c60f50cb3bf36f5d1fc605c8  bottle-session-0.9.tar.gz"
